package com.eighth.decorator;

/**
 * Author Name: Justice
 * Project Name: Stage11
 * File Name: SausageDecorator
 * Package Name: com.eighth.decorator
 * Date: 2020-03-27 13:25
 * Copyright (c) 2020,All Rights Reserved.
 * 香肠装饰类
 */


public class SausageDecorator extends AbstractDecorator {
    SausageDecorator(ABattercake aBattercake) {
        super(aBattercake);
    }

    @Override
    protected String getDesc() {
        return super.getDesc() + "加一根香肠";
    }

    @Override
    protected int cost() {
        return super.cost() + 2;
    }
}
